<script language="JavaScript">
{literal}
if (document.forms[0])
{
    for(i = 0; i < document.forms[0].length;i++)
    {
        if (document.forms[0].elements[i].type == 'text')
        {
            document.forms[0].elements[i].focus();
            break;
        }
    }
}
{/literal}
</script>
</html>
